tg-me.com/python12/1303
Create:
Last Update:
Last Update:
# پاسخ تمرین شماره 1
num1 = float(input("Input Number : "))
op = input("Input Operator : ")
num2 = float(input("Input Number : "))
choices = {
'+': num1 + num2,
'-': num1 - num2,
'*': num1 * num2,
'/': num1 / num2,
}
result = choices.get(op, 0)
# نمایش پاسخ به همراه عبارت
print(str(num1) + " " + op + " " + str(num2) + " = " + str(result))
BY پایتون / python
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Share with your friend now:
tg-me.com/python12/1303